#ifndef __ASSEMBLY__
#error "Only include this from assembly code"
#endif

#ifndef ASM_UTILS_ASSEMBLER_H
#define ASM_UTILS_ASSEMBLER_H

#include <generated/kconfig.h>

/*
 * Select code when configured for BE.
 */
#ifdef CONFIG_CPU_BIG_ENDIAN
#define CPU_BE(code...) code
#else
#define CPU_BE(code...)
#endif

/*
 * Select code when configured for LE.
 */
#ifdef CONFIG_CPU_BIG_ENDIAN
#define CPU_LE(code...)
#else
#define CPU_LE(code...) code
#endif

#endif /* !ASM_UTILS_ASSEMBLER_H */
